package com.prb.framework.invoke;

import lombok.Data;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

@Data
public class HandlerMethod {

    private String beanId;

    private String reqPath;

    private Object target;

    private Method method;

    private Map<String , Integer> param = new HashMap<>();

    private Object[] args;


    public Object invoke() throws InvocationTargetException, IllegalAccessException {

        return method.invoke(target , args);
    }

}
